<?php



/**
 * 前端路由
 */
Route::get('/', function(){
	return redirect('/home');
});

Route::group(['namespace' => 'Index', 'prefix' => 'index', 'middleware' => 'home'], function(){
	//Route::controller('index', 'IndexController');
});

/**
 * 后端路由
 */
Route::get('/admin', function(){
	return redirect('admin/index/login');
});

Route::controller('/admin/index', 'Admin\IndexController');

Route::group(['namespace' => 'Admin', 'prefix' => 'admin', 'middleware' => 'admin'], function(){
	Route::controller('center', 'CenterController');          	//网站框架
	Route::controller('admin', 'AdminController');           	//管理员管理
	Route::controller('admingroup', 'AdminGroupController');  	//管理组管理


});


/**
 * API路由
 */
Route::group(['namespace' => 'Api', 'prefix' => 'api', 'middleware' => 'api_c'], function(){
//	Route::controller('carrousel', 'CarrouselController');		//轮播图
});
